using System.Web.Mvc;
using NUnit.Framework;
using StructureMap.AutoMocking;

namespace Roommate.UnitTests.Web
{
    public class ControllerFixtureBase<CONTROLLERTYPE> where CONTROLLERTYPE: Controller
    {
        protected CONTROLLERTYPE controller;


        protected RhinoAutoMocker<CONTROLLERTYPE> mocks = new RhinoAutoMocker<CONTROLLERTYPE>(MockMode.AAA);  

    //    protected APPSERVICEYPE GetService<APPSERVICEYPE>()
    //{
    //        return mocks.Get<APPSERVICEYPE>();
    //}

        [SetUp]
        public void SetupContext()
        {
            controller = mocks.ClassUnderTest;
        }
    }
}